package com.firewolf.wx.entities;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * 通用商品
 * @author liuxing
 *
 */
public class CommonGoods {
	private Integer id; 
	private String desci; //描述
	private Double price; //价格
	private List<String> tips; //所有的小提示
	private String tipstr; //提示组合在一起的字符串
	private String content;//最后的连接内容
	private String img;
	private Date ds;
	private Integer categoryid;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDesci() {
		return desci;
	}
	public void setDesci(String desci) {
		this.desci = desci;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public List<String> getTips() {
		return tips;
	}
	public void setTips(List<String> tips) {
		this.tips = tips;
	}
	
	public String getTipstr() {
		return tipstr;
	}
	public void setTipstr(String tipstr) {
		this.tipstr = tipstr;
		if(tipstr != null){
			String[] split = tipstr.split(";");
			tips = Arrays.asList(split);
		}
	}
	public Date getDs() {
		return ds;
	}
	public void setDs(Date ds) {
		this.ds = ds;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public Integer getCategoryid() {
		return categoryid;
	}
	public void setCategoryid(Integer categoryid) {
		this.categoryid = categoryid;
	}
}
